/** =================================================
 * 静态路由
 * keepAlive: true // 组件需要缓存
 *------------------------------------------------- */


// import DescPage from '@/layout/DescPage.vue'
export default [
  // 系统设置
  {
    path: '/setting',
    name: 'Setting',
    meta: { title: '系统设置', auth: false , icon: 'dashboard'},
    component: () => import('@/layout/DescPage.vue'),
    children: [
      {
        ppath: '/preferences',
        name: 'Preferences',
        meta: { title: '基础参数设置', auth: false , icon: 'dashboard'},
        component:() => import('@/views/Dashboard.vue')
      },
      {
        path: '/smsConfiguration',
        name: 'SmsConfiguration',
        meta: { title: '短信参数设置', auth: false },
        component: () => import('@/views/Workplace.vue')
      },
      {
        path: '/emailConfiguration',
        name: 'EmailConfiguration',
        meta: { title: '短信参数设置', auth: false },
        component: () => import('@/views/Workplace.vue')
      },
      {
        path: '/filesConfiguration',
        name: 'FilesConfiguration',
        meta: { title: '文件服务设置', auth: false },
        component: () => import('@/views/Workplace.vue')
      }
    ]
  },
  // 数据安全
  {
    path: '/dataSecurity',
    name: 'DataSecurity',
    meta: { title: '数据安全', auth: false , icon: 'dashboard'},
    component: () => import('@/layout/DescPage.vue'),
    children: [
      {
        path: '/dataRecycledBin',
        name: 'DataRecycledBin',
        meta: { title: '数据回收站', auth: false , icon: 'dashboard'},
        component:() => import('@/views/Dashboard.vue')
      },
      {
        path: '/dataRecycledRule',
        name: 'DataRecycledRules',
        meta: { title: '数据回收规则管理', scrollTop: 0 , auth: false },
        component: () => import('@/views/Workplace.vue')
      },
      {
        path: '/sensitiveDataLog',
        name: 'SensitiveDataLog',
        meta: { title: '敏感数据修改记录', scrollTop: 0 , auth: false },
        component: () => import('@/views/Workplatform.vue')
      },
      {
        path: '/sensitiveDataRule',
        name: 'sensitiveDataRule',
        meta: { title: '敏感字段规则管理', keepAlive: true , auth: false},
        component: () => import('@/views/About.vue')
      }
    ]
  }
]